package com.jic.market.common.constant;

import com.jic.market.common.exception.BaseEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author guohuayong
 * @date: 2020年01月19日
 */
public interface PatchGrouponThemeConstant {
    /**
     * 0:初始化(创建活动未提交) 1：进行中 2：已过期 3：已关闭 4：未开始 5：待提交 6:待审核 7：审核未通过
     */
    @AllArgsConstructor
    enum StatusEnum {
        STATUS_00(0, ""),
        STATUS_01(1, "进行中"),
        STATUS_02(2, "已过期"),
        CLOSE(3, "已关闭"),
        STATUS_04(4, "未开始"),
        STATUS_05(5, "待提交"),
        STATUS_06(6, "待审核"),
        STATUS_07(7, "审核未通过"),
        ;

        @Getter
        private Integer code;
        private String remark;
    }

    @AllArgsConstructor
    enum LimitType implements BaseEnum<Integer> {
        LIMIT(0, "不限制"),
        NOT_LIMIT(1, "限制"),
        ;

        @Getter
        private Integer code;
        @Getter
        private String message;
    }
}
